import urllib.request

url = 'http://www.58pic.com/shiliangtu/26834690.html'


def getUrlContent(htmlUrl):
    content = urllib.request.urlopen(htmlUrl)
    return content


if __name__ == '__main__':
    htmlContent = getUrlContent(url)
    if htmlContent.code == 200:
        Html = str(htmlContent.read())
        print(Html)
    else:
        print('获取网页数据失败')
